package com.yff.dao;

import java.util.List;

import com.yff.model.User;

public interface IUserDao {
	public abstract int add(User user);
	public abstract int delete(int id);
	public abstract int edit(User user);
	public abstract User get(int id);
	public abstract List<User> getAll();
	public abstract User login(String username,String password);
	public abstract boolean isExist(String username);
	public abstract List<User> getAll(int page, int pageSize);
	public abstract int count(String sql, Object[] params);
}


